#include "object.h"

void printCurrentThreadId()
{
    // 获取当前线程的ID
    Qt::HANDLE threadId = QThread::currentThreadId();

    // 将Qt::HANDLE转换为quintptr，以便转换为字符串
    quintptr threadIdAsQuintPtr = reinterpret_cast<quintptr>(threadId);

    // 将quintptr转换为QString
    QString threadIdStr = QString::number(threadIdAsQuintPtr, 16).toUpper(); // 转换为16进制并大写

    // 打印线程ID
    qDebug() << "Current Thread ID:" << threadIdStr;
}


Object::Object()
{

}
